package com.zy.design.pattern.factory.method;

import com.zy.design.pattern.factory.base.IRuleConfigParser;
import lombok.Getter;

/**
 * @author zhaoyi
 * @date 2021/3/29 18:36
 */
@Getter
public class SqlRuleConfigParser implements IRuleConfigParser {

    private String address;

    @Override
    public void parse(String field) {
        this.address = this.toString();
        System.out.println("DB模式的" + field + " 模拟对象不可复用,每次要新创建 " + this);
    }

}
